<template>
  <div class="wrap">
    <h3>捡货需求表：xxxxxx</h3>
    <div class="header">
      <div class="left">
        <span style="font-weight: bold">所需商品：</span>
      </div>
      <div class="right">
        <el-button>导出</el-button>
      </div>
    </div>
    <div class="content">
      <el-table
        :data="data"
        row-key="id"
        border
        v-loading="loading"
      >
        <el-table-column
          prop="orderId"
          label="商品封面"
          align="center"
          min-width="120"
        >
        </el-table-column>
        <el-table-column
          prop="num"
          label="订单编号"
          align="center"
          min-width="100"
        >
        </el-table-column>
        <el-table-column
          prop="account"
          label="Listing ID"
          align="center"
          min-width="300"
          show-overflow-tooltip
        >
        </el-table-column>
        <el-table-column
          prop="account"
          label="SKU"
          align="center"
          min-width="300"
          show-overflow-tooltip
        >
        </el-table-column>
        <el-table-column
          prop="num"
          label="变体属性"
          align="center"
          min-width="300"
        >
        </el-table-column>
        <el-table-column
          prop="num"
          label="用户名"
          align="center"
          min-width="300"
        >
        </el-table-column>
        <el-table-column
          prop="num"
          label="店铺名"
          align="center"
          min-width="300"
        >
        </el-table-column>
        <el-table-column
          prop="num"
          label="数量"
          align="center"
          min-width="300"
        >
        </el-table-column>
        <el-table-column
          prop="num"
          label="操作"
          align="left"
          min-width="300"
        >
          <template slot-scope="{row}">
            <el-button class="mgr10">查看详情</el-button>
          </template>
        </el-table-column>

      </el-table>
      <div class="tips">如存在商品无法捡货的情况，可将其标记为异常</div>
    </div>
    <div class="footer">
      <el-button>返回</el-button>
      <el-button type="primary">保存</el-button>
      <el-button type="danger" @click="submitForm">确认捡货</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "packInfo",
  data(){
    return {
      data: [],
      loading: false,
    };
  },
  methods: {
    submitForm(){
      this.$alert(
        `<p>当前捡货单中的所有商品<span style="color: #FF0000">（不包含异常）</span>已完成捡货？</p>` +
        `<p>如果未完成捡货，请使用「保存」功能保留本次记录</p>`,
        '确认捡货？',
        {
          dangerouslyUseHTMLString:true,
          // type:'warning',
          showCancelButton:true,
        }
      )
        .then(res=>{
          //

        })
        .catch(res=>{

        })
    }
  },
}
</script>

<style scoped lang="scss">
.wrap {
  padding: 30px 30px;

  .header {
    display: flex;
    justify-content: space-between;
  }

  .content {
    padding: 0 0 0;
    margin-top: 20px;
    .tips{
      font-size: 12px;
    }
  }
  .footer{
    margin-top: 30px;
  }
}
</style>
